package com.backend.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author 21129
 */

@Getter
@AllArgsConstructor
public enum DeptType {
    COLLEGE(1, "学院"),
    MAJOR(2, "专业"),
    CLASS(3, "班级");
    
    private final Integer value;
    private final String desc;
    
    public static DeptType valueOf(Integer value) {
        for (DeptType type : values()) {
            if (type.getValue().equals(value)) {
                return type;
            }
        }
        return null;
    }
} 